package util;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;

import MyNode.Service;

public class SortList {
	public static void sort(List<Map.Entry<Object, Double>> infoIds) {
		Collections.sort(infoIds, new Comparator<Map.Entry<Object, Double>>() {
			public int compare(Map.Entry<Object, Double> o1, Map.Entry<Object, Double> o2) {
				double p = o1.getValue() - o2.getValue();
				if (p > 0) {
					return -1;
				} else if (p == 0) {
					return 0;
				} else
					return -1;
			}

		});
	}

}
